﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DetailProductControl.ascx.cs" Inherits="UserControlSupport_DetailProduct" %>
<%@ Register src="ShowProducts.ascx" tagname="ShowProducts" tagprefix="uc2" %>
<table style="width: 100%;">
    <tr>
        <td>
            <asp:DataList ID="_ProDetails" runat="server" onitemdatabound="DataBound">
                <ItemTemplate>
                    <table style="width:100%;">
                        <tr>
                            <td rowspan="9">
                                <asp:Image ID="_ProImage" runat="server" ImageUrl="<%# Bind('ProImage') %>" 
                AlternateText="Chưa Có Hình" />
                                <br />
                                Hình Ảnh Chi Tiết</td>
                            <td colspan="2">
                                <asp:Label ID="_ProName" runat="server" Text="<%# Bind('ProName') %>"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Giá:</td>
                            <td>
                                <asp:Label ID="_ProPrice" runat="server" Text="<%# Bind('ProPrice') %>"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Số hàng trong kho:</td>
                            <td>
                                <asp:Label ID="instock" runat="server" Text="<%# Bind('instock') %>"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="_ProDes" runat="server" Text="<%# Bind('ProDes') %>"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Chọn Kích Cỡ:&nbsp;&nbsp;
                                <asp:DropDownList ID="_ProSize" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="SizeChange">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Chọn Màu Sắc:&nbsp;&nbsp; <asp:DropDownList ID="_ProColor" runat="server" 
                                    AutoPostBack="True" onselectedindexchanged="ColorChange">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Đặt mua:
                                <asp:TextBox ID="Count" runat="server" Width="94px">1</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:ImageButton ID="_AddtoCard" runat="server" 
                                            ImageUrl="~/publish/Images/buynow.jpg" AlternateText="Đặt Mua" 
                                    onclick="BuyClick" />
                                <asp:HiddenField ID="_ProDesId" runat="server" 
                                    Value='<%# Bind("ProDesId") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Hotline <b>0168.998.4262 </b>- (04) 6682.8827
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <asp:Label ID="error" runat="server" Font-Bold="True" ForeColor="Red" 
                Visible="False"></asp:Label>
            <br />
        </td>
    </tr>
    <tr>
        <td>
            Các sản phẩm cùng loại:</td>
    </tr>
    <tr>
        <td>
            <uc2:ShowProducts ID="ShowProducts1" runat="server" />
        </td>
    </tr>
    </table>
